<!DOCTYPE html>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="jquery-3.4.1.min.js"></script>
    <script src="echarts.js"></script>
    <title>Document</title>
</head>
<body style="padding: 0;margin: 0 ;background-color: #F1F4FD;">
    <div id="echarts" style="width: 100%; height: 350px;"></div>
    <script>
        function getData(timeArray, dataArray) {
            var timeData = new Array;
            var dataData = new Array;
            try{
                tmpstr = JSON.stringify(timeArray);
                substr = tmpstr.substring(2, tmpstr.length-2);
                timeData = substr.split(',');
            }catch(exception) {
                alert(exception);
            }
            try{
                tmpstr = JSON.stringify(dataArray);
                substr = tmpstr.substring(2, tmpstr.length-2);
                dataData = substr.split(',');
            }catch(exception) {
                alert(exception);
            }

            var dom = document.getElementById("echarts");
            var myChart = echarts.init(dom);
            option = {
                tooltip: {
                    trigger: 'axis'
                },
                xAxis: {
                    type: 'category',
                    data: timeData,
                    axisTick: {
                        show: false
                    },
                    axisLine: {
                        lineStyle:{
                            color: '#ccc'
                        }
                    }
                },
                yAxis: {
                    type: 'value',
                    axisTick: {
                        show: false
                    },
                    axisLine: {
                        lineStyle:{
                            color: '#ccc'
                        }
                    }
                },
                series: [{
                    data: dataData,
                    type: 'line',
                    color: '#ccc',
                }]
            };
            myChart.setOption(option, true);
        }
    </script>
</body>
</html>